package cn.wei.youvie.service;

import cn.wei.youvie.domain.dto.menu.MenuAddRequest;
import cn.wei.youvie.domain.dto.menu.MenuQueryRequest;
import cn.wei.youvie.domain.dto.menu.MenuUpdateRequest;
import cn.wei.youvie.domain.entity.Menu;
import cn.wei.youvie.domain.vo.MenuVO;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Youvie
* @description 针对表【menus(菜单)】的数据库操作Service
* @createDate 2024-09-03 10:55:20
*/
public interface MenuService extends IService<Menu> {

    //添加菜单
    Integer addMenu(MenuAddRequest menuAddRequest);

    //更新菜单
    boolean update(MenuUpdateRequest menuUpdateRequest);

    //查询菜单
    List<MenuVO> getMenus(MenuQueryRequest menuQueryRequest);

    //所有菜单
    List<MenuVO> getAllMenus(HttpServletRequest request);
}
